package com.qf.application.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author l
 * @since 2024-07-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("user")
public class User extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("address")
    private String address;

    @TableField("phone")
    private Long phone;

    @TableField("unit_name")
    private String unitName;

    @TableField("unit_address")
    private String unitAddress;

    @TableField("create_time")
    private Date createTime;

    @TableField("img")
    private Date img;

    @TableField("code")
    private Integer code;

}
